<?
    // Initialize the session.
    session_start();
    require_once("../inc/checkAdminPagePermissions.php");
    require_once("../inc/config.inc.php");
    require_once('../conexion.php');
	require_once('utiles.php');
	function cambiafechamysql($fecha){ 
      ereg( "([0-9]{1,2})/([0-9]{1,2})/([0-9]{2,4})", $fecha, $mifecha); 
      $fechana=$mifecha[3]."-".$mifecha[2]."-".$mifecha[1]; 
      return $fechana;
     }
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<html>
<head>
    <title><? echo _SITE_NAME; ?> :: Panel Administrativo :: Inicio</title>
    <meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
	<link href="../calendar/CalendarControl.css"      rel="stylesheet" type="text/css">
     <script src="../calendar/CalendarControl.js"        language="javascript"></script>
<SCRIPT LANGUAGE="JavaScript" SRC="../reloj/timepicker.js"></SCRIPT>
    <link href="../css/main.css" type=text/css rel=stylesheet>
	<script>
	function cerrar()
{
if (confirm("Desea salir sin aplicar los cambios ?"))
   {
    document.location="servicio.php";
   }
}
	
var nav4 = window.Event ? true : false;
function acceptNum(e){ 

var key;

 if(window.event) // IE
 {
  key = e.keyCode;
 }
  else if(e.which) // Netscape/Firefox/Opera
 {
  key = e.which;
 }

 if (key < 46 || key > 57) 
    {
      return false;
    }

 return true;

}

function validarnumeros(e) {
    tecla = (document.all)?e.keyCode:e.which;
    if (tecla==8) return true;
    patron = /^\d+\.?\d*$/;
	
    te = String.fromCharCode(tecla);
    return patron.test(te); 
} 
function validar(forma)
{
if (forma.cliente.value=="")
{
 alert("Por favor seleccione cliente");
 forma.cliente.focus();
 return false;
}
if ((forma.preventivo.checked==false) && (forma.correctivo.checked==false) && (forma.calibracion.checked==false) && (forma.instalacion.checked==false) && (forma.retiro.checked==false) && (forma.prospeccion.checked==false) && (forma.otros.checked==false)) 
{
 alert("Seleccione alguna operacion a realizar");
 forma.preventivo.focus();
 return false;
}

if (forma.fecha.value=="")
{
 alert("Por favor introduzca fecha del servicio");
 forma.fecha.focus();
 return false;
}

if (forma.horaentrada.value=="")
{
 alert("Por favor introduzca hora de inicio del servicio");
 forma.horaentrada.focus();
 return false;
}
if (forma.horasalida.value=="")
{
 alert("Por favor introduzca hora de salida del servicio");
 forma.horasalida.focus();
 return false;
}
if (forma.tecnico.value=="")
{
 alert("Por favor introduzca nombre del tecnico");
 forma.tecnico.focus();
 return false;
}
if (forma.ubicacion.value=="")
{
 alert("Por favor introduzca ubicacion del equipo");
 forma.ubicacion.focus();
 return false;
}
if (forma.responsable.value=="")
{
 alert("Por favor introduzca responsable");
 forma.responsable.focus();
 return false;
}


return true;
}
function Ir() { 
  document.location="servicio.php";
  
}
	</script>
</head>


<!-- BEGIN MAIN CONTENT ARE -->
<body style="background: #ffffff;">

<div align="left">
  <h4>Servicio -> Servicio a Equipos -> Insertar</h4>
</div>
<?php

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
	
	@$preventivo=$_POST["preventivo"]; 
	@$correctivo=$_POST["correctivo"]; 
	@$calibracion=$_POST["calibracion"]; 
	@$instalacion=$_POST["instalacion"]; 
	@$retiro=$_POST["retiro"]; 
	@$prospeccion=$_POST["prospeccion"]; 
	@$otros=$_POST["otros"]; 
	$fecha=cambiafechamysql($_POST["fecha"]); 
	@$horaentrada=$_POST["horaentrada"]; 
	@$horasalida=$_POST["horasalida"]; 
	@$tecnico=$_POST["tecnico"]; 
	@$ubicacion=$_POST["ubicacion"]; 
	@$responsable=$_POST["responsable"]; 
	@$idcliente=$_POST["cliente"]; 
	$numerocliente=obtenernumerocliente($idcliente);
	$numeroplanilla=obtenernumeroplanilla($idcliente);
	$numeroplanilla=$numerocliente."-".$numeroplanilla;
	@$p1=$_POST["p1"]; 
	@$p2=$_POST["p2"]; 
	@$p3=$_POST["p3"]; 
	@$p4=$_POST["p4"]; 
	@$p5=$_POST["p5"]; 
	@$p6=$_POST["p6"]; 
	@$p7=$_POST["p7"]; 
	@$p8=$_POST["p8"]; 
	@$p9=$_POST["p9"]; 
	@$p10=$_POST["p10"]; 
	@$p11=$_POST["p11"]; 
	@$p12=$_POST["p12"]; 
	@$p13=$_POST["p13"]; 
	@$p14=$_POST["p14"]; 
	@$p15=$_POST["p15"]; 
	@$p16=$_POST["p16"]; 
	@$p17=$_POST["p17"]; 
	@$p18=$_POST["p18"]; 
	@$p19=$_POST["p19"]; 
	@$p20=$_POST["p20"]; 
	@$p21=$_POST["p21"]; 
	@$p22=$_POST["p22"]; 
	@$p23=$_POST["p23"]; 
	@$p24=$_POST["p24"]; 
	@$p25=$_POST["p25"]; 
	@$p26=$_POST["p26"]; 
	@$p27=$_POST["p27"]; 
	@$p28=$_POST["p28"]; 
	@$p29=$_POST["p29"]; 
	@$p30=$_POST["p30"]; 
	@$p31=$_POST["p31"]; 
	@$p32=$_POST["p32"]; 
	@$energia=$_POST["energia"]; 
	@$depurador=$_POST["depurador"]; 
	@$filtro=$_POST["filtro"]; 
	@$ch1=$_POST["ch1"]; 
	@$ch2=$_POST["ch2"]; 
	@$ch3=$_POST["ch3"]; 
	@$ch4=$_POST["ch4"]; 
	@$ch5=$_POST["ch5"]; 
	@$ch6=$_POST["ch6"]; 
	@$ch7=$_POST["ch7"]; 
	@$ch8=$_POST["ch8"]; 
	@$ch9=$_POST["ch9"]; 
	@$ch10=$_POST["ch10"]; 
	@$ch11=$_POST["ch11"]; 
	@$ch12=$_POST["ch12"]; 
	@$ch13=$_POST["ch13"]; 
	@$ch14=$_POST["ch14"]; 
	@$ch15=$_POST["ch15"]; 
	@$ch16=$_POST["ch16"]; 
	@$ch17=$_POST["ch17"]; 
	@$ch18=$_POST["ch18"]; 
	@$ch19=$_POST["ch19"]; 
	@$ch20=$_POST["ch20"]; 
	@$ch21=$_POST["ch21"]; 
	@$filtro1=$_POST["filtro1"]; 
	@$c1=$_POST["c1"]; 
	@$c2=$_POST["c2"]; 
	@$c3=$_POST["c3"]; 
	@$c4=$_POST["c4"]; 
	@$c5=$_POST["c5"]; 
	@$c6=$_POST["c6"]; 
	@$c7=$_POST["c7"]; 
	@$c8=$_POST["c8"]; 
	@$c9=$_POST["c9"]; 
	@$c10=$_POST["c10"]; 
	@$c11=$_POST["c11"]; 
	@$c12=$_POST["c12"]; 
	@$c13=$_POST["c13"]; 
	@$mes=$_POST["mes"]; 
	@$azucar=$_POST["azucar"]; 
	@$vasos=$_POST["vasos"]; 
	@$cafe=$_POST["cafe"];
	
	$cadena="INSERT INTO servicio 
	(preventivo, 
	correctivo, 
	calibracion, 
	instalacion, 
	retiro, 
	prospeccion, 
	otros, 
	fecha, 
	horaentrada, 
	horasalida, 
	tecnico, 
	ubicacion, 
	responsable, 
	idcliente, 
	p1, 
	p2, 
	p3, 
	p4, 
	p5, 
	p6, 
	p7, 
	p8, 
	p9, 
	p10, 
	p11, 
	p12, 
	p13, 
	p14, 
	p15, 
	p16, 
	p17, 
	p18, 
	p19, 
	p20, 
	p21, 
	p22, 
	p23, 
	p24, 
	p25, 
	p26, 
	p27, 
	p28, 
	p29, 
	p30, 
	p31, 
	p32, 
	energia, 
	depurador, 
	filtro, 
	ch1, 
	ch2, 
	ch3, 
	ch4, 
	ch5, 
	ch6, 
	ch7, 
	ch8, 
	ch9, 
	ch10, 
	ch11, 
	ch12, 
	ch13, 
	ch14, 
	ch15, 
	ch16, 
	ch17, 
	ch18, 
	ch19, 
	ch20, 
	ch21, 
	filtro1, 
	c1, 
	c2, 
	c3, 
	c4, 
	c5, 
	c6, 
	c7, 
	c8, 
	c9, 
	c10, 
	c11, 
	c12, 
	c13, 
	mes, 
	azucar, 
	vasos, 
	cafe,
	numero
	)
	VALUES
	('$preventivo', 
	'$correctivo', 
	'$calibracion', 
	'$instalacion', 
	'$retiro', 
	'$prospeccion', 
	'$otros', 
	'$fecha', 
	'$horaentrada', 
	'$horasalida', 
	'$tecnico', 
	'$ubicacion', 
	'$responsable', 
	'$idcliente', 
	'$p1', 
	'$p2', 
	'$p3', 
	'$p4', 
	'$p5', 
	'$p6', 
	'$p7', 
	'$p8', 
	'$p9', 
	'$p10', 
	'$p11', 
	'$p12', 
	'$p13', 
	'$p14', 
	'$p15', 
	'$p16', 
	'$p17', 
	'$p18', 
	'$p19', 
	'$p20', 
	'$p21', 
	'$p22', 
	'$p23', 
	'$p24', 
	'$p25', 
	'$p26', 
	'$p27', 
	'$p28', 
	'$p29', 
	'$p30', 
	'$p31', 
	'$p32', 
	'$energia', 
	'$depurador', 
	'$filtro', 
	'$ch1', 
	'$ch2', 
	'$ch3', 
	'$ch4', 
	'$ch5', 
	'$ch6', 
	'$ch7', 
	'$ch8', 
	'$ch9', 
	'$ch10', 
	'$ch11', 
	'$ch12', 
	'$ch13', 
	'$ch14', 
	'$ch15', 
	'$ch16', 
	'$ch17', 
	'$ch18', 
	'$ch19', 
	'$ch20', 
	'$ch21', 
	'$filtro1', 
	'$c1', 
	'$c2', 
	'$c3', 
	'$c4', 
	'$c5', 
	'$c6', 
	'$c7', 
	'$c8', 
	'$c9', 
	'$c10', 
	'$c11', 
	'$c12', 
	'$c13', 
	'$mes', 
	'$azucar', 
	'$vasos', 
	'$cafe',
	'$numeroplanilla'
	)";

	if (@mysql_query($cadena))
	 {
	  echo "<script>alert('Registro actualizado');document.location='servicio.php';</script>";
	}
   else
   {
   echo "<script>alert('Ocurrio un error actualizando el registro.');window.history.back(-1);</script>";
   }

        

}
?>
<form action="insertarservicio.php" method="post" enctype="multipart/form-data" name="form1" id="form1" onSubmit="return validar(this)">
  <table width="88%" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>
	<td height="20" bgcolor="#CCCCCC"><div align="left"><strong>DATOS GENERALES</strong>&nbsp;&nbsp;&nbsp;<a class="tooltip" href="#"><img src="../images/interro.JPG" border="0"><span> <font size="-2" face="Arial, Helvetica, sans-serif">Datos generales del servicio.</font></span> </a>(*) Campos Obligatorios </div></td>
	</tr>
	<tr>
	<td>
	<table width="100%">
    <tr  >
      <td  ><div align="right"><strong>Cliente:</strong></div></td>
      <td   colspan="3" >
	  <?
	  $criterio2="";
      if ($_SESSION["idempresa"]>0) $criterio2=" WHERE empleados.rif= '$_SESSION[idempresa]' ";
	  if ($_SESSION["idempresa"]==100) $criterio2=" WHERE empleados.iduser= '$_SESSION[adm_user_id]' ";
	  $cadena="select * from empleados ".$criterio2." order by nombre";

	  $datos=mysql_query($cadena);
	  
	  ?>
        <div align="left">
          <select name="cliente" id="cliente" title="Cliente al cual se le da el entrenamiento" style="width:270px">
		   <option value="">---</option>
		  <? while ($fila=mysql_fetch_assoc($datos)) {
		   ?>
		  <option value="<?=$fila["rif"]; ?>"><?=$fila["nombre"]; ?></option>
		  <? } ?>
          </select>
          (*)</div></td>
	    </tr>
	<tr  >
      <td  valign="middle" ><div align="right"><strong>Tipo de Servicio:</strong></div></td>
      <td colspan="3" >
	  <table>
	  <tr>
	  <td>          <div align="right">Mantenimiento Preventivo </div></td>
	    <td><div align="left">
	      <input name="preventivo" type="checkbox" id="preventivo" title="" value="SI">	  
	      </div></td>
	  <td>          <div align="right">Mantenimiento Correctivo</div></td>
	    <td><div align="left">
	      <input name="correctivo" type="checkbox" id="correctivo" title="" value="SI">	  
	      </div></td>
	  <td><div align="right">Calibraci&oacute;n</div></td>
	    <td><div align="left">
	      <input name="calibracion" type="checkbox" id="calibracion" title="" value="SI">	  
	      </div></td>
	  <td><div align="right">Instalaci&oacute;n</div></td>
	    <td><div align="left">
	      <input name="instalacion" type="checkbox" id="instalacion" title="" value="SI">	  
	      </div></td>
	  </tr>
	  <tr>
	  <td>          <div align="right">Retiro</div></td>
	    <td><div align="left">
	      <input name="retiro" type="checkbox" id="retiro" title="" value="SI">	  
	      </div></td>
	  <td><div align="right">Prospecci&oacute;n</div></td>
	    <td><div align="left">
	      <input name="prospeccion" type="checkbox" id="prospeccion" title="" value="SI">	  
	      </div></td>
	  <td>          <div align="right">Otros</div></td>
	    <td><div align="left">
	      <input name="otros" type="checkbox" id="otros" title="" value="SI">	  
	      </div></td>
	  </tr>
	  </table>                </td>
	    </tr>
	<tr  >
      <td  ><div align="right"><strong>Fecha:</strong></div></td>
      <td >
        <div align="left">
          <input name="fecha" type="text" id="fecha" size="35" maxlength="250"  onfocus="showCalendarControl(this);" readonly="true" title="Fecha del Servicio" >
          (*)</div></td>
	    <td ><div align="right"><strong>Hora Entrada:</strong></div></td>
      <td  >
        <div align="left">
          <input name="horaentrada" type="text" id="horaentrada" size="8" maxlength="250" title="Hora de Entrada"  readonly="true">
          <IMG SRC="../reloj/images/timepicker.gif" ALT="Pick a Time!" width="30" height="20" BORDER="0" align="absmiddle" STYLE="cursor:hand" ONCLICK="selectTime(this,horaentrada)"><strong>Hora Salida:</strong>
          <input name="horasalida" type="text" id="horasalida" size="8" maxlength="250" title="Hora de Salida"  readonly="true">
          <IMG SRC="../reloj/images/timepicker.gif" ALT="Pick a Time!" width="30" height="20" BORDER="0" align="absmiddle" STYLE="cursor:hand" ONCLICK="selectTime(this,horasalida)">          (*)</div></td>
    </tr>
	<tr  >
      <td  ><div align="right"><strong>T&eacute;cnico:</strong></div></td>
      <td >
        <div align="left">
          <input name="tecnico" type="text" id="tecnico" size="35" maxlength="250" title="Tecnico del Servicio">
          (*)</div></td>
	    <td ><div align="right"><strong>Ubicaci&oacute;n M&aacute;quina:</strong></div></td>
      <td  >
        <div align="left">
          <input name="ubicacion" type="text" id="ubicacion" size="35" maxlength="250" title="Ubicacion de la maquina">
          (*)</div></td>
    </tr>
	<tr  >
      <td  ><div align="right"><strong>Responsable:</strong></div></td>
      <td >
        <div align="left">
          <input name="responsable" type="text" id="responsable" size="35" maxlength="250" title="Responsable">
          (*)</div></td>
	    <td colspan="2" >&nbsp;</td>
      </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	<TR>
	<td colspan="3"><hr>	</td>
	</TR>
	<tr bgcolor="#CCCCCC"  >
      <td width="80%"  ><div align="left"><strong>MEDICIONES</strong></div></td>
	  <td  ><div align="center"><strong>MAQUINA</strong></div></td>
	  <td  ><div align="center"><strong>MOLINO</strong></div></td>
    </tr>
	
	<tr  >
      <td  ><div align="left"><strong>El Equipo se encuentra operativo </strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p1" id="p1">
		    <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
          </div></td>
	  <td  >
	    <div align="center">
	      <SELECT name="p2" id="p2">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
      </tr>
	<tr  >
      <td  ><div align="left"><strong>La Limpieza externa es adecuada</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p3" id="p3">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <SELECT name="p4" id="p4">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>El estado de la rotulaci&oacute;n es aceptable</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p5" id="p5">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <SELECT name="p6" id="p6">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>Tiene etiqueta de informaci&oacute;n y servicio t&eacute;cnico actualizada</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p7" id="p7">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <SELECT name="p8" id="p8">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>La Limpieza del equipo es adecuada</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p9" id="p9">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <SELECT name="p10" id="p10">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>Las partes cr&iacute;ticas del equipo trabajan correctamente y est&aacute;n en buenas condiciones</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p11">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <SELECT name="p12">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>El producto utilizado en la m&aacute;quina es Bila</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p13">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <SELECT name="p14">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>Los equipos estan libres de plaga</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p15">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <SELECT name="p16">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>El suministro de agua de la m&aacute;quina cumple con los requisitos de Bila</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p17">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <SELECT name="p18">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>El tipo de molido es el correcto</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p19">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <SELECT name="p20">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>Peso de dosificaci&oacute;n entre 6.8 y 7.2 gr.</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p21">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <SELECT name="p22">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	<TR>
	<td colspan="2"><hr>	</td>
	</TR>
	<tr bgcolor="#CCCCCC"  >
      <td  width="80%"  ><div align="left"><strong>ESTABLECIMIENTO Y AREA DE CAFE</strong></div></td>
	  <td  ><div align="center"></div></td>
	  </tr>
	
	<tr  >
      <td  ><div align="left"><strong>La vajilla cumple con los par&aacute;metros correctos </strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p23">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
          </div></td>
	  </tr>
	<tr  >
      <td  ><div align="left"><strong>Esta el establecimiento libre de plaga o evidencia de esta</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p24">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    </tr>
		<tr  >
      <td  ><div align="left"><strong>La calidad del producto servido es la correcta</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p25">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    </tr>
		<tr  >
      <td  ><div align="left"><strong>Es adecuada la imagen de la marca en el exterior</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p26">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    </tr>
		<tr  >
      <td  ><div align="left"><strong>Es adecuada la imagen de la marca en el interior </strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p27">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    </tr>
		<tr  >
      <td  ><div align="left"><strong>Existe alguna maquina de caf&eacute; instantaneo</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p28">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    </tr>
		<tr  >
      <td  ><div align="left"><strong>Se siguen los procedimientos de preparaci&oacute;n recomendado</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p29">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	
	<tr bgcolor="#CCCCCC"  height="35px" >
      <td width="80%"    ><div align="left"><strong>NIVEL DE SERVICIO</strong></div></td>
	  <td  ><div align="center"></div></td>
	  </tr>
	
	<tr  >
      <td  ><div align="left"><strong>El personal fue informado sobre el correcto funcionamiento y limpieza de la m&aacute;quina</strong></div></td>
      <td >
        <div align="center">
          <SELECT name="p30">
            <option value="">---</option>
            <option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
          </div></td>
	  </tr>
	  <tr  >
      <td colspan="1"  ><div align="left"><strong>Nombre completo del operador(es) mientras la auditor&iacute;a es realizada:</strong></div></td>
      <td colspan="1" ><div align="left">
            <input name="c1" type="text" id="c1" size="35" maxlength="250" title="">
      </div></td>
	    </tr>
		<TR>
		<td colspan="2">
		<table width="100%">
		<tr>
		<td>MOLINO</td>
		<td>MAQUINA</td>
		<td>230V</td>
		<td>115V</td>
		<td>DEPURADOR</td>
		<td>FILTRO</td>
		</tr>
		<tr>
		<td><select name="p31" id="p31">
		 <option value="">---</option>
		  <option value="AUTOMATICO">AUTOMATICO</option>
		  <option value="MANUAL">MANUAL</option>
		</select></td><td><select name="p32" id="p32">
		 <option value="">---</option>
		  <option value="1 G">1 G</option>
		  <option value="2 G">2 G</option>
		  <option value="3 G">3 G</option>
                </select></td><td><INPUT name="energia" type="radio" value="SI"></td><td><INPUT name="energia" type="radio" value="NO"></td><td><INPUT name="depurador" type="radio" value="SI">
                  SI
                    <INPUT name="depurador" type="radio" value="NO">
                    NO</td>
                <td><INPUT name="filtro" type="radio" value="SI">
SI
  <INPUT name="filtro" type="radio" value="NO">
NO</td>
		</tr>
		</table>
		</td>
		</TR>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	
	<tr bgcolor="#CCCCCC"  >
      <td colspan="8" height="35px"   ><div align="left"><strong>REPUESTOS UTILIZADOS EN LA MAQUINA (CORRECTIVO)</strong></div>        <div align="center"></div></td>
	  </tr>
	
	<tr  >
      <td ><div align="right">
        <INPUT name="ch1" type="checkbox" id="ch1" value="SI">
      </div></td>
      <td ><div align="left">Filtro Ciego </div></td><td ><div align="right">
        <INPUT name="ch2" type="checkbox" id="ch2" value="SI">
      </div></td>
      <td ><div align="left">Ret&eacute;n</div></td><td ><div align="right">
        <INPUT name="ch3" type="checkbox" id="ch3" value="SI">
      </div></td>
      <td ><div align="left">Pomo Vapor </div></td><td ><div align="right">
        <INPUT name="ch4" type="checkbox" id="ch4" value="SI">
      </div></td>
      <td ><div align="left">Switch on/off </div></td>
	  </tr>
	  <tr  >
      <td ><div align="right">
        <INPUT name="ch5" type="checkbox" id="ch5" value="SI">
      </div></td>
      <td ><div align="left">Ducha</div></td><td ><div align="right">
        <INPUT name="ch6" type="checkbox" id="ch6" value="SI">
      </div></td>
      <td ><div align="left">Tubo de agua </div></td><td ><div align="right">
        <INPUT name="ch7" type="checkbox" id="ch7" value="SI">
      </div></td>
      <td ><div align="left">Pomo agua </div></td><td ><div align="right">
        <INPUT name="ch8" type="checkbox" id="ch8" value="SI">
      </div></td>
      <td ><div align="left">Tubo vapor </div></td>
	  </tr>
	  <tr  >
      <td ><div align="right">
        <INPUT name="ch9" type="checkbox" id="ch9" value="SI">
      </div></td>
      <td ><div align="left">Empacadura</div></td><td colspan="2" ><div align="left">
        <INPUT name="filtro1" type="radio" value="SI">
        Filtro 1 
        <INPUT name="filtro1" type="radio" value="NO">
        Filtro 2 </div></td>
      <td ><div align="right">
        <INPUT name="ch10" type="checkbox" id="ch10" value="SI">
      </div></td>
      <td ><div align="left">Centralina</div></td><td ><div align="right">
        <INPUT name="ch11" type="checkbox" id="ch11" value="SI">
      </div></td>
      <td ><div align="left">Otro: 
        <input name="c2" type="text" id="c2" size="20" maxlength="250" title="">
      </div></td>
	  </tr>
	</table>	</td>
	</tr>
	<tr>
	<td><table width="100%" border="0" cellpadding="1" cellspacing="1">
     
      <tr bgcolor="#CCCCCC"  >
        <td colspan="8" height="35px"   ><div align="left"><strong>REPUESTOS UTILIZADOS EN EL MOLINO (CORRECTIVO)</strong></div>
            <div align="center"></div></td>
      </tr>
      <tr  >
        <td ><div align="right">
            <INPUT name="ch12" type="checkbox" id="ch12" value="SI">
        </div></td>
        <td ><div align="left">Horquilla </div></td>
        <td ><div align="right">
            <INPUT name="ch13" type="checkbox" id="ch13" value="SI">
        </div></td>
        <td ><div align="left">Resorte</div></td>
        <td ><div align="right">
            <INPUT name="ch14" type="checkbox" id="ch14" value="SI">
        </div></td>
        <td ><div align="left">Tolva</div></td>
        <td ><div align="right">
            <INPUT name="ch15" type="checkbox" id="ch15" value="SI">
        </div></td>
        <td ><div align="left">Tapa dosificador</div></td>
      </tr>
      <tr  >
        <td ><div align="right">
            <INPUT name="ch16" type="checkbox" id="ch16" value="SI">
        </div></td>
        <td ><div align="left">Estrella dosificador</div></td>
        <td ><div align="right">
            <INPUT name="ch17" type="checkbox" id="ch17" value="SI">
        </div></td>
        <td ><div align="left">Fresas</div></td>
        <td ><div align="right">
            <INPUT name="ch18" type="checkbox" id="ch18" value="SI">
        </div></td>
        <td ><div align="left">Tapa Tolva</div></td>
        <td ><div align="right">
            <INPUT name="ch19" type="checkbox" id="ch19" value="SI">
        </div></td>
        <td ><div align="left">Otro: 
            <input name="c3" type="text" id="c3" size="20" maxlength="250" title="">
        </div></td>
      </tr>
      
    </table></td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	
	<tr bgcolor="#CCCCCC"  >
      <td  height="35px" colspan="2" ><div align="left"><strong>TIPO DE MANTENIMIENTO</strong></div></td>
	  </tr>
	
	<tr  >
      <td   ><input name="ch20" type="checkbox" id="ch20" value="SI"></td>
      <td >
        <div align="left">A: Limpieza de equipos: Grupos, duchas, tubo vapor, desague, filtros, portafiltros, exterior de m&aacute;quina, tolva, dosificador, exterior molino</div></td>
	  </tr>
	  <tr  >
      <td   ><input name="ch21" type="checkbox" id="ch21" value="SI"></td>
      <td >
        <div align="left">B: Tipo A m&aacute;s: Depuraci&oacute;n, calibraci&oacute;n de bomba y presostato (si es necesario), limpieza entrada de agua, limpieza de fresas, diagn&oacute;stico general</div></td>
	  </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	
	<tr bgcolor="#CCCCCC"  >
      <td  height="35px" colspan="6"  ><div align="left"><strong>PROXIMO MANTENIMIENTO B</strong></div>        <div align="center"></div></td>
	  </tr>
	
	<tr  >
      <td width="22%" ><div align="right">
        <input name="mes" type="radio" value="1">
      </div></td>
      <td width="11%" ><div align="left">1 mes</div></td><td width="5%" ><div align="right">
        <input name="mes" type="radio" value="2">
      </div></td>
      <td width="11%" ><div align="left">2 meses </div></td><td width="6%" ><div align="right">
        <input name="mes" type="radio" value="3">
      </div></td>
      <td width="45%" ><div align="left">3 meses </div></td>
	  </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	
	<tr bgcolor="#CCCCCC"  >
      <td  height="35px" colspan="2"  ><div align="left"><strong>INVENTARIO</strong></div></td>
	  <td colspan="2"  ><div align="center"><strong>PRODUCTOS</strong></div></td>
	  </tr>
	
	<tr  >
      <td  ><div align="right">Tasa Peque&ntilde;a</div></td>
      <td  >
        <div align="left">
          <input name="c4" type="text" id="c4" size="10" maxlength="250" title="" onKeyPress="return acceptNum(event)" style="text-align:right">
          </div></td>
      <td colspan="2"  ><div align="center">Az&uacute;car Bila</div></td>
	  </tr>
	  <tr  >
      <td  ><div align="right">Plato Peque&ntilde;o</div></td>
      <td  >
        <div align="left">
          <input name="c5" type="text" id="c5" size="10" maxlength="250" title="" onKeyPress="return acceptNum(event)" style="text-align:right">
          </div></td>
      <td  >
        <div align="right">
          <input name="azucar" type="radio" id="tecnico22222" title="" value="SI">
          SI
        </div></td>
      <td  >
        <div align="left">
          <input name="azucar" type="radio" id="radio" title="" value="NO">
          NO</div></td>
	  </tr>
	  <tr  >
      <td  ><div align="right">Tasa Grande</div></td>
      <td  >
        <div align="left">
          <input name="c6" type="text" id="c6" size="10" maxlength="250" title="" onKeyPress="return acceptNum(event)" style="text-align:right">
          </div></td>
      <td colspan="2"  ><div align="center">Vasos Bila</div></td>
	  </tr>
	  <tr  >
      <td  ><div align="right">Plato Grande</div></td>
      <td  >
        <div align="left">
          <input name="c7" type="text" id="c7" size="10" maxlength="250" title="" onKeyPress="return acceptNum(event)" style="text-align:right">
          </div></td>
      <td  >
        <div align="right">
          <input name="vasos" type="radio" id="radio2" title="" value="SI">
          SI</div></td>
      <td  >
        <div align="left">
          <input name="vasos" type="radio" id="radio3" title="" value="NO">
          NO</div></td>
	  </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">

	<tr bgcolor="#CCCCCC"  >
      <td  height="35px" colspan="5"   ><div align="left"><strong>CAFE</strong></div>        <div align="center"></div></td>
	  </tr>
	
	<tr  >
      <td width="36%"  ><div align="right">Grano:</div></td>
      <td width="5%" >
        2.5kg</td>
      <td width="7%" >
        
          <div align="left">
            <input name="c8" type="text" id="c8" size="10" maxlength="250" title="" onKeyPress="return acceptNum(event)" style="text-align:right">
            </div></td><td width="9%" >
              <div align="right">250 gr</div></td><td width="43%" >
        
          <div align="left">
            <input name="c9" type="text" id="c9" size="10" maxlength="250" title="" onKeyPress="return acceptNum(event)" style="text-align:right">
            </div></td>
	  </tr>
	  <tr  >
      <td  ><div align="right">Molido:</div></td>
      <td >
        3.0kg</td>
      <td >
        
          <div align="left">
            <input name="c10" type="text" id="c10" size="10" maxlength="250" title="" onKeyPress="return acceptNum(event)" style="text-align:right">
            </div></td><td >
              <div align="right">300 gr</div></td><td >
        
          <div align="left">
            <input name="c11" type="text" id="c11" size="10" maxlength="250" title="" onKeyPress="return acceptNum(event)" style="text-align:right">
            </div></td>
	  </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	
	<tr bgcolor="#CCCCCC"  >
      <td height="35" colspan="4"   ><div align="left"><strong>PRECIO DE VENTA DEL CAFE</strong></div>        <div align="center"></div></td>
	  </tr>
	
	<tr  >
      <td width="36%"  ><div align="right">Grande Bs.</div></td>
      <td width="8%" ><div align="left">
        <input name="c12" type="text" id="c12" size="10" maxlength="250" title="" onKeyPress="return acceptNum(event)" style="text-align:right">
      </div></td>
      <td width="9%" ><div align="right">Peque&ntilde;o Bs. </div></td><td width="47%" ><div align="left">
        <input name="c13" type="text" id="c13" size="10" maxlength="250" title="" onKeyPress="return acceptNum(event)" style="text-align:right">
      </div></td>
	</tr>
	  <tr  >
      <td  ><div align="right">Dep. Residuos Caf&eacute;</div></td>
      <td >
        <div align="center">
          <input name="cafe" type="radio" id="radio4" title="" value="SI">
          SI</div></td>
      <td ><div align="left">
        <input name="cafe" type="radio" id="radio5" title="" value="NO">
        NO</div></td><td ><div align="left"></div></td>
	  </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>&nbsp;</td>
	</tr>
    <tr >
      <td colspan="2" ><hr size="1" /></td>
    </tr>
    <tr >
      <td  colspan="2" align="center" ><input name="Submit" type="submit"  value="Aceptar Datos" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input name="Submit3" type="button"  onClick="cerrar()" value="Menu Servicio" /></td>
    </tr>
  </table>
  <input type="hidden" name="MM_insert" value="form1">
 
</form>
</body>
</html>
